﻿using Lan.ServiceCore.AlarmRecord;
using Lan.ServiceCore.TargetCollection;
using SqlSugar.IOC;

namespace Lan.Application.Task
{
    public static class TasksExtension
    {
        public static IApplicationBuilder CameraInit(this IApplicationBuilder app)
        {
            Console.WriteLine("初始化所有相机");

            CameraManager.Init();
            return app;
        }
        public static IApplicationBuilder RadarInit(this IApplicationBuilder app)
        {
            ServiceCore.WebScoket.RadarManager.Init();
            return app;
        }
        public static IApplicationBuilder DefenceAreaInit(this IApplicationBuilder app)
        {
            Console.WriteLine("初始化所有防区");
            DefenceAreaManager.Init();
            return app;
        }
        public static IApplicationBuilder TrackInfoInit(this IApplicationBuilder app)
        {
            TrackInfoAdd.Init();
            return app;
        }
    }
}
